﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Runda.EShop.Common.Entity;
using Runda.EShop.Bll;

namespace Runda.EShop.Web.Customer
{
    public partial class QAAdd : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnSave_Click(object sender, EventArgs e)
        {
            BizCustomerQAEntity entity = new BizCustomerQAEntity();
            entity.CustomerID = base.User.Identity.LoginUser.UserID;
            entity.Question = txtQuestion.Text;
            entity.CreatedAt = DateTime.Now;
            entity.Deleted = false;

            CustomerBll bll = new CustomerBll();
            bll.Insert(entity);

            Response.RedirectPermanent("MessageList.aspx");
        }
    }
}